import request from '@/utils/request'

// 查询盘点单列表
export function listBizInventoryOrder (query) {
  return request({
    url: '/biz/bizInventoryOrder/list',
    method: 'get',
    params: query
  })
}

// 查询盘点单详细
export function getBizInventoryOrder (id) {
  return request({
    url: '/biz/bizInventoryOrder/' + id,
    method: 'get'
  })
}

// 新增盘点单
export function addBizInventoryOrder (data) {
  return request({
    url: '/biz/bizInventoryOrder',
    method: 'post',
    data: data
  })
}

// 修改盘点单
export function updateBizInventoryOrder (data) {
  return request({
    url: '/biz/bizInventoryOrder',
    method: 'put',
    data: data
  })
}

// 删除盘点单
export function delBizInventoryOrder (id) {
  return request({
    url: '/biz/bizInventoryOrder/' + id,
    method: 'delete'
  })
}


// 导出盘点单
export function exportBizInventoryOrder (query) {
  return request({
    url: '/biz/bizInventoryOrder/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizInventoryOrder/getInitData/' + dictTypes,
    method: 'get'
  })
}


//客户应收期初审核
export function auditBizInventoryOrder (id) {
  return request({
    url: '/biz/bizInventoryOrder/audit/' + id,
    method: 'get'
  })
}

//客户应收期初反审核
export function doAuditBizInventoryOrder (id) {
  return request({
    url: '/biz/bizInventoryOrder/doAudit/' + id,
    method: 'get'
  })
}
